<?php

namespace common\entities\myhtsq;

use common\entities\ContractEntity;
use Yii;

/**
 * This is the model class for table "myscrm_contract_email_contacts".
 *
 * @property string $contact_id
 * @property string $user_id
 * @property string $bu_id
 * @property integer $level
 */
class ContractEmailContactsEntity extends ContractEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_contract_email_contacts';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['contact_id'], 'required'],
            [['level'], 'integer'],
            [['contact_id', 'user_code', 'bu_id'], 'string', 'max' => 36]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'contact_id' => 'Contact ID',
            'user_code' => 'User Code',
            'bu_id' => 'Bu ID',
            'level' => 'Level',
        ];
    }
}
